#ifndef ENEMY_2_H
#define ENEMY_2_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class ENEMY_2 : public QGraphicsObject
{

    Q_OBJECT

    QPainterPath *border;
    QPixmap *im;

    QGraphicsItemAnimation *anim_enemy;
    QTimeLine *enemy_time_line;

    QPoint stvol_1;
    QPoint stvol_2;
    QPoint stvol_3;
    QPoint stvol_4;

    int timer_id;

    int ammunition;

    bool left_orientation;

    COLLISIA_CONTROL *collisia_control;

    int point;

    SOUND_POWER *go;

public:


    explicit ENEMY_2(SCENE *scene, QTimeLine *global_tl, CASH *cash);

    void timerEvent(QTimerEvent *);

    QPainterPath shape() const;

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    ~ENEMY_2();

    int type() const;

signals:

    void Fire(QPoint,bool left_orientation);

    void Kill_Me_Please(QGraphicsObject *);
    
public slots:

    void Damage_Detected(QPointF a,int d);
    
};

#endif // ENEMY_2_H
